PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-07-26 10:22:56.848262+00:00 (UTC)
In US/Central Time, this is 2024-07-26 05:22:56.848262-05:00
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np

# Generating a random time series data
dates = pd.date_range(start="2021-01-01", end="2021-12-31", freq='D')
data = np.random.randn(len(dates)).cumsum()

# Creating the plot
plt.figure(figsize=(10, 6))
plt.plot(dates, data, label='Random Time Series', color='blue')
plt.title('Random Time Series Plot')
plt.xlabel('Date')
plt.ylabel('Value')
plt.legend()
plt.grid(True)
plt.xticks(rotation=45)
plt.tight_layout()

# Display the plot
plt.show()
print('We are just generating a random time serie here.')
../../_images/56f91f2db880f2c402c3763026e9bcb2785528e29198f0e9ea088b6cbdb0a2f1.png
We are just generating a random time serie here.
../../_images/a8e8d538b1313c63807e04c6d9aef1e2721ece9f575bfce13fc709aff2cb3132.png
../../_images/da8e0547fcc0b4f4446a67563f2733a21002b5128be343dccec3fd3f7377c979.png